package com.wayne.utils;

import com.alibaba.druid.pool.DruidDataSource;

public class DruidUtils {

  private DruidUtils() {}

  private static DruidDataSource druidDataSource = new DruidDataSource();

  static {
    druidDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
    druidDataSource.setUrl("jdbc:mysql://localhost:3306/test");
    druidDataSource.setUsername("root");
    druidDataSource.setPassword("123456");
  }

  public static DruidDataSource getInstance() {
    return druidDataSource;
  }
}
